<template>
  <div id="app">
    <ul>
      <li v-for="item in items" :key="item">
         <input type="checkbox"/>
         <span>{{item}}</span>
      </li>
    </ul>
    <button @click="change">添加D</button>
  </div>
</template>
<script>
export default {
  name: 'App',
  data(){
    return {
      items:['A','B','C']
    }
  },
  methods:{
    change(){
      this.items.unshift('D');
    }
  }
}
</script>

<style>

</style>
